<?php
require_once 'include/base.php';
require_once 'include/staticdata.php';
require_once 'include/topwrap.php';

$smarty = new TopSmartyBase();
$top_config = Taoapi_Config::Init();
$top_config->setCharset('UTF-8');

$taoapi = new TopWrap(false,true);
$cat_items = $taoapi->getItemCats();
$smarty->getSmarty()->assign('item_cats',$cat_items['item_cats']['item_cat']);
$top_right = $taoapi->getItems(16,1,15,'commissionVolume_desc');
$smarty->getSmarty()->assign('top_right',$top_right['taobaoke_items']['taobaoke_item']);

$digital = $taoapi->getItems(1512,1,15,'commissionVolume_desc');
$smarty->getSmarty()->assign('digital',$digital['taobaoke_items']['taobaoke_item']);
//var_dump($digital);
$jewelry = $taoapi->getItems(50011397,1,15,'commissionVolume_desc');
$smarty->getSmarty()->assign('jewelry',$jewelry['taobaoke_items']['taobaoke_item']);
//var_dump($jewelry);
$baby = $taoapi->getItems(1635,1,15,'commissionVolume_desc');
$smarty->getSmarty()->assign('baby',$baby['taobaoke_items']['taobaoke_item']);
//var_dump($baby);

$headerExtrea = '<script src="js/jquery.js" type="text/javascript"></script><script src="js/catnav.js" type="text/javascript"></script>';
$smarty->getSmarty()->assign('title', '爱淘之家淘宝精品 _网络购物网赚新动力');
$smarty->getSmarty()->assign('HeaderExtrea', $headerExtrea);

$smarty->getSmarty()->assign('sitelinks', get_link_site());
$data = StaticData::getMenuData();
$smarty->getSmarty()->assign('keywords', $data[0][3]);
$smarty->getSmarty()->assign('description', $data[0][4]);
$smarty->getSmarty()->display('index.tpl');
